import Vue from 'vue'
import MuseUI from 'muse-ui';
import SlidePicker from 'muse-ui';
import From from 'muse-ui';
import Progress from 'muse-ui';
import 'muse-ui/dist/muse-ui.css'
import Container from 'element-ui';
import Layout from 'element-ui';
import Carousel  from 'element-ui';
import Drawer   from 'element-ui';
import Popover     from 'element-ui';
import DatePicker   from 'element-ui';
import Dropdown   from 'element-ui';
import MessageBox    from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueWechatTitle from 'vue-wechat-title'
import "./static/iconfont.css"
import  store  from './store'
import axios from 'axios';
import App from './App.vue' 
import router from './router'
Vue.prototype.$http=axios;
Vue.config.productionTip = false
Vue.use(VueWechatTitle)
Vue.use(Container);
Vue.use(Drawer)
Vue.use(Carousel)
Vue.use(Layout)
Vue.use(Popover ) 
Vue.use(DatePicker) 
Vue.use(Dropdown)
Vue.use(MuseUI) 
Vue.use(SlidePicker) 
Vue.use(Progress)
Vue.use(MessageBox)
Vue.use(From) 
//请求拦截器
// axios.interceptors.request.use(function(config){
//   config['headers']['Authorization']="Bearer "+localStorage.getItem("token");
//   return config;
// })
// axios.interceptors.request.use((res)=>{
//   console.log("返还拦截器",res);
//   return res
// })
router.beforeEach((to, from, next) => {
  /* 路由发生变化修改页面title */
  if (to.meta.title) {
    document.title = to.meta.title
  }
  next()
})
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
